/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.dealer.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 区域信息Entity
 * @author jyangye
 * @version 2017-11-07
 */
public class FxAreainfo extends DataEntity<FxAreainfo> {
	
	private static final long serialVersionUID = 1L;
	private String areaid;		// areaid
	private String areacode;		// areacode
	private String arealevelid;		// arealevelid
	private String areastateid;		// areastateid
	private String areaname;		// areaname
	private String remark;		// remark
	private String parentareaid;		// parentareaid
	private String factoryareaid;		// factoryareaid
	
	public FxAreainfo() {
		super();
	}

	public FxAreainfo(String id){
		super(id);
	}

	@Length(min=1, max=32, message="areaid长度必须介于 1 和 32 之间")
	public String getAreaid() {
		return areaid;
	}

	public void setAreaid(String areaid) {
		this.areaid = areaid;
	}
	
	@Length(min=1, max=20, message="areacode长度必须介于 1 和 20 之间")
	public String getAreacode() {
		return areacode;
	}

	public void setAreacode(String areacode) {
		this.areacode = areacode;
	}
	
	@Length(min=0, max=32, message="arealevelid长度必须介于 0 和 32 之间")
	public String getArealevelid() {
		return arealevelid;
	}

	public void setArealevelid(String arealevelid) {
		this.arealevelid = arealevelid;
	}
	
	@Length(min=0, max=32, message="areastateid长度必须介于 0 和 32 之间")
	public String getAreastateid() {
		return areastateid;
	}

	public void setAreastateid(String areastateid) {
		this.areastateid = areastateid;
	}
	
	@Length(min=1, max=50, message="areaname长度必须介于 1 和 50 之间")
	public String getAreaname() {
		return areaname;
	}

	public void setAreaname(String areaname) {
		this.areaname = areaname;
	}
	
	@Length(min=0, max=500, message="remark长度必须介于 0 和 500 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=32, message="parentareaid长度必须介于 0 和 32 之间")
	public String getParentareaid() {
		return parentareaid;
	}

	public void setParentareaid(String parentareaid) {
		this.parentareaid = parentareaid;
	}
	
	@Length(min=0, max=50, message="factoryareaid长度必须介于 0 和 50 之间")
	public String getFactoryareaid() {
		return factoryareaid;
	}

	public void setFactoryareaid(String factoryareaid) {
		this.factoryareaid = factoryareaid;
	}
	
}